﻿using SpiderMaster;
using SpiderMaster.AspNet.UI;
using System.Web.UI.WebControls;

namespace SpiderMaster.AspNet.TradingSystem.UI
{
    /// <summary> Trading Center Page.
    /// </summary>
    [ReganSchroder(8, 10, 2009)]
    public partial class TradingCenterPage : SpideyPage
    {
        /// <summary> Gets a value indicating whether [user is administrator]. 
        /// </summary>
        /// <value><c>true</c> if [user is administrator]; otherwise, <c>false</c>.</value>
        public bool IsAdministrator { get { return RoleManagement.IsUserInRole(User.Identity.Name, PredefinedRole.GeneralAdministrator); } }
    }
}